Skip to content

Conversation

cxljs
Copy link
Contributor

@cxljs cxljs commented May 17, 2025

When dealing with small strings, using the strings.ReplaceAll() function delivers better performance.

@ndyakov
Copy link
Member

ndyakov commented May 19, 2025

Thank you @fukua95, looking at the benchmarks, this makes sense!

@ndyakov ndyakov self-requested a review May 19, 2025 16:20
@ndyakov ndyakov merged commit 3af2cc5 into redis:master May 19, 2025
16 checks passed
ofekshenawa pushed a commit to ofekshenawa/go-redis that referenced this pull request Jun 30, 2025
* chore: optimize function `ReplaceSpaces`

Signed-off-by: fukua95 <[email protected]>

* trigger CI again because the bug of docker

Signed-off-by: fukua95 <[email protected]>

* trigger CI again because the bug of docker

Signed-off-by: fukua95 <[email protected]>

---------

Signed-off-by: fukua95 <[email protected]>
ofekshenawa pushed a commit that referenced this pull request Aug 10, 2025
* chore: optimize function `ReplaceSpaces`

Signed-off-by: fukua95 <[email protected]>

* trigger CI again because the bug of docker

Signed-off-by: fukua95 <[email protected]>

* trigger CI again because the bug of docker

Signed-off-by: fukua95 <[email protected]>

---------

Signed-off-by: fukua95 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants